/*Project2 part3  driver!*/
#include "syscall.h"
#include "user.h"

void main (void) {
	char* name= "../test/doctorOffice";
	int type = 0;
	
	Printf("Welcome to part3 of project2\n");
	Printf("Please choose the simulation case\n");
	Printf("Case1: One doctorOffice. Single Process\n");
	Printf("Case2: Two doctorOffices. Two Process\n");
	Printf("The command is: [1,2]\n");
	
	type = InputInt();
	switch(type){
	case 1: Printf("One doctorOffice starts!\n");
			Exec("../test/doctorOffice",sizeof("../test/doctorOffice"));
			break;
	case 2: Printf("Two doctorOffices start!\n");
			Exec("../test/doctorOffice",sizeof("../test/doctorOffice"));
			Exec("../test/doctorOffice",sizeof("../test/doctorOffice"));
			break;
	default: 
			Printf("The command is: [1,2]\n");
			break;
	}
	Exit(0);
}